
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <meta name="layout" content="main"/>
    <title></title>
    <style type="text/css">
    label {
        float: left;
        width: 65px;
    }
    </style>
</head>

<body>

<g:if test="${flash.message}">
    <dev class="message">
        ${flash.message}
    </dev>
</g:if>
<g:if test="${session.user}">
    <br/>
    Login as : ${session.user} | <g:link action="logout">Logout</g:link>
</g:if>
<g:else>
<g:form action="login" style="padding-left: 200px">
    <div style="width:220px">
        <label for="user">Name:</label> <input type="text" id="user" name="username"/>
        <label for="pass">Password:</label> <input type="password" id="pass" name="password"/>
        <label>&nbsp;</label><input type="submit" value="Login"/>
    </div>
</g:form>
</g:else>
</body>
</html>